import config from '@/config'
import http from '@/utils/request'

export default {
	// 活动监控
	ActivitySup: {
		// 活动列表
		ActivityExec: {
			url: `${config.API_URL}/ActivityExec/list`,
			name: '活动列表',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		},
		// 活动详情
		info: {
			url: `${config.API_URL}/ActivityExec/info`,
			name: '活动详情',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		},
		// 活动商业客户
		businessList: {
			url: `${config.API_URL}/ActivityExec/businessList`,
			name: '活动商业客户',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		}
	},

	// 活动复盘
	activityDuplicate: {
		// 商业客户
		businessDimension: {
			url: `${config.API_URL}/activityDuplicate/businessDimension`,
			name: '商业客户',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 活动类型
		activityTypeDimension: {
			url: `${config.API_URL}/activityDuplicate/activityTypeDimension`,
			name: '活动类型',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 次数详情
		activityDertails: {
			url: `${config.API_URL}/activityDuplicate/activityDertails`,
			name: '次数详情',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		}
	}
}
